<layout name="../../../resource/master"/>

<section class="scrollable padder">
    <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
        <li><a href="#"><i class="fa fa-home"></i> 首页</a></li>
        <li><a href="">类型属性管理</a></li>
        <li class="active">编辑类型属性</li>
    </ul>

    <section class="panel panel-default">
        <header class="panel-heading font-bold">
            编辑类型属性
        </header>
        <div class="panel-body">
            <form class="form-horizontal" id="form" method="post">
                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-5"></div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">属性名称</label>
                    <div class="col-sm-5">
                        <input type="text" name="name" value="{$attr['name']}" required="" class="form-control" placeholder="属性名称长度 1 到 20 位">
                        <input type="hidden" name="type_ID" class="w200" value="29">
                        <input type="hidden" name="taid" class="w200" value="84">
                    </div>
                </div>

                <div class="form-group"><label class="col-sm-2 control-label">属性类别</label>
                    <div class="col-sm-10">
                        <div class="i-checks">
                            <label>
                                <input type="radio" value="1" name="value" <if condition="$attr['value']==1">checked</if>><i></i> 属性

                            </label>
                            <label>
                                <input type="radio" value="0" name="value" <if condition="$attr['value']==0">checked</if>><i></i> 规格
                            </label>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">属性值</label>
                    <div class="col-sm-5">
                        <textarea name="typeattr"  rows="8" cols="" required="" class="form-control" placeholder="多个属性，以" ,>{$attr['typeattr']}</textarea>
                    </div>
                </div>



                <div class="form-group">
                    <label class="col-sm-2 control-label"></label>
                    <div class="col-sm-5"></div>
                </div>



                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-2">
                        <button class="btn btn-primary" id="btn" type="submit">确定编辑</button>
                    </div>
                </div>
            </form>
        </div>
    </section>
</section>